package com.example.wechatdaka.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.wechatdaka.entity.UserTeacher;
import com.example.wechatdaka.mapper.UserTeacherMapper;
import com.example.wechatdaka.service.UserTeacherService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lx
 * @since 2020-11-27
 */
@Service
public class UserTeacherServiceImpl extends ServiceImpl<UserTeacherMapper, UserTeacher> implements UserTeacherService {
    @Autowired
    private UserTeacherMapper userTeacherMapper;
    @Override
    public IPage<UserTeacher> queryAllTeacherPage(Page page) {
        return userTeacherMapper.queryAllTeacherPage(page);
    }

    @Override
    public UserTeacher queryByNumber(String id) {
        return userTeacherMapper.queryByNumber(id);
    }

    @Override
    public IPage<UserTeacher> queryByKeywordPage(Page page, String keyword) {
        return userTeacherMapper.queryByKeywordPage(page,keyword);
    }
}
